package o;

import android.util.Log;
import androidx.annotation.NonNull;
import java.io.File;

public class xr implements sd<xt> {
    @NonNull
    public rw ˊ(@NonNull sc scVar) {
        return rw.SOURCE;
    }

    public boolean ˋ(@NonNull tx<xt> txVar, @NonNull File file, @NonNull sc scVar) {
        try {
            aam.ˊ(((xt) txVar.ˋ()).ॱ(), file);
            return true;
        } catch (Throwable e) {
            if (Log.isLoggable("GifEncoder", 5)) {
                Log.w("GifEncoder", "Failed to encode GIF drawable data", e);
            }
            return false;
        }
    }
}
